package NetworkConfiguration;

import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.wb.swt.SWTResourceManager;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.widgets.TableColumn;
import org.eclipse.swt.widgets.TableItem;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;

public class NSetExampleMessage_BaseParameter extends Composite {
	private Table table;

	/**
	 * Create the composite.
	 * @param parent
	 * @param style
	 */
	public NSetExampleMessage_BaseParameter(Composite parent, int style) {
		super(parent, style);
		setSize(1000,800);
		setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		
		Label lblNewLabel = new Label(this, SWT.NONE);
		lblNewLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		lblNewLabel.setBounds(41, 25, 436, 27);
		lblNewLabel.setText("网络配置(网络分配)：飞机实例基本参数设置");
		lblNewLabel.setFont(new Font(getDisplay(), "宋体",15,SWT.RIGHT));
		
		Label label = new Label(this, SWT.NONE);
		label.setText("基本参数配置");
		label.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		label.setBounds(41, 58, 116, 17);
		
		Composite composite = new Composite(this, SWT.NONE);
		composite.setBackgroundImage(SWTResourceManager.getImage("./images/u1221.png"));
		composite.setBounds(55, 87, 601, 303);
		
		Label label_1 = new Label(this, SWT.NONE);
		label_1.setText("基本参数配置：");
		label_1.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		label_1.setBounds(41, 416, 98, 17);
		
		table = new Table(this, SWT.BORDER | SWT.FULL_SELECTION);
		table.setBounds(55, 439, 601, 134);
		table.setHeaderVisible(true);
		table.setLinesVisible(true);
		
		TableItem tableItem_1 = new TableItem(table, SWT.NONE);
		tableItem_1.setText("安装位置1");
				
		TableItem tableItem_2 = new TableItem(table, SWT.NONE);
		tableItem_2.setText("安装位置2");
				
		TableItem tableItem_3 = new TableItem(table, SWT.NONE);
		tableItem_3.setText("安装位置3");
		
		TableItem tableItem_4= new TableItem(table, SWT.NONE);
		tableItem_4.setText("安装位置4");
		
		TableColumn tableColumn_1 = new TableColumn(table, SWT.CENTER);
		tableColumn_1.setWidth(100);
		tableColumn_1.setText("距离");
		
		TableColumn tableColumn_2 = new TableColumn(table, SWT.CENTER);
		tableColumn_2.setWidth(100);
		tableColumn_2.setText("安装位置1");
		
		TableColumn tableColumn_3 = new TableColumn(table, SWT.CENTER);
		tableColumn_3.setWidth(100);
		tableColumn_3.setText("安装位置2");
		
		TableColumn tableColumn_4 = new TableColumn(table, SWT.CENTER);
		tableColumn_4.setWidth(100);
		tableColumn_4.setText("安装位置3");
		
		TableColumn tableColumn_5 = new TableColumn(table, SWT.CENTER);
		tableColumn_5.setWidth(100);
		tableColumn_5.setText("安装位置4");
		
		Button btnNewButton = new Button(this, SWT.NONE);
		btnNewButton.addSelectionListener(new SelectionAdapter() {
			@Override
			public void widgetSelected(SelectionEvent e) {
			}
		});
		btnNewButton.setBounds(243, 604, 80, 27);
		btnNewButton.setText("返回");
		
		Button button = new Button(this, SWT.NONE);
		button.setText("确定");
		button.setBounds(374, 604, 80, 27);

	}

	@Override
	protected void checkSubclass() {
		// Disable the check that prevents subclassing of SWT components
	}
}
